<%@ Page Language="c#" Codebehind="CustomizeItem.aspx.cs" AutoEventWireup="false"
    Inherits="QuoteAdvantage.CustomizeItem" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Customize Item</title>
    <link href="QuoteAdvantageStyles.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript">
         function onFormLoaded()
         {
            if (<%=m_bShowValidationWarning%> == true)
            {
               if (confirm("<%=strValidationProblems%>"))
               {
                  window.location = "<%=m_strCloseUrl%>";
               }
            }
         }
         
         function onCustomizeItem(strCategoryId, strProductNumber, nControlNumber)
         {
            var strControlName = "categoryList" + strCategoryId + "_" + nControlNumber;
            var ctlCheckbox = document.getElementById(strControlName);
            
            ctlCheckbox.checked = true;
            document.Form1.txtCustomizeData.value = strCategoryId + "," + strProductNumber;
            __doPostBack("btnCustomize", "");
            return false;
         }
    </script>

</head>
<body class="QuoteAdvantagePage" onload="onFormLoaded()">
    <form id="Form1" method="post" runat="server">
        <div class="Toolbar" style="z-index: 102; left: 0px; width: 712px; position: absolute;
            top: 0px; height: 22px">
            <asp:LinkButton ID="lnkUpdatePrice" Style="z-index: 102; left: 504px; position: absolute;
                top: 0px" runat="server" CssClass="ToolbarButton" Height="20px" Width="96px">Update Price</asp:LinkButton>
            <asp:LinkButton ID="lnkClose" Style="z-index: 103; left: 608px; position: absolute;
                top: 0px" runat="server" CssClass="ToolbarButton" Height="20px" Width="96px">Close</asp:LinkButton>
        </div>
        <asp:Label ID="lblConfigWarning" Style="z-index: 101; left: 8px; position: absolute;
            top: 24px" runat="server" CssClass="LabelError" Height="16px" Width="779px">There is a problem with the items that you have selected. Please correct the issue and press Update Price.</asp:Label>
        <asp:Panel ID="pnlControlList" Style="z-index: 105; left: 8px; overflow: auto; position: absolute;
            top: 64px" runat="server" CssClass="ConfiguratorPanel"
            Height="380px" Width="704px">
        </asp:Panel>
        <asp:Label ID="lblProductName" Style="z-index: 106; left: 8px; position: absolute;
            top: 40px" runat="server" Width="528px" CssClass="Header">Product Name</asp:Label>
        <asp:Label ID="lblPrice" Style="z-index: 104; left: 552px; position: absolute; top: 40px"
            runat="server" Width="158px" Height="20px" CssClass="LabelPrice">$1,234,456</asp:Label>
        <asp:Button ID="btnCustomize" Style="z-index: 103; left: 624px; position: absolute;
            top: 464px" runat="server" Text="Customize"></asp:Button>
        <asp:TextBox ID="txtCustomizeData" Style="z-index: 107; left: 464px; position: absolute;
            top: 464px" runat="server"></asp:TextBox>
    </form>
</body>
</html>
